import request from '@/utils/request'

// 查询项目下发列表
export function listIssuedProjects(query) {
  return request({
    url: '/gs/issuedProjects/list',
    method: 'get',
    params: query
  })
}

// 查询项目下发详细
export function getIssuedProjects(id) {
  return request({
    url: '/gs/issuedProjects/' + id,
    method: 'get'
  })
}

// 新增项目下发
export function addIssuedProjects(data) {
  return request({
    url: '/gs/issuedProjects',
    method: 'post',
    data: data
  })
}

// 修改项目下发
export function updateIssuedProjects(data) {
  return request({
    url: '/gs/issuedProjects',
    method: 'put',
    data: data
  })
}

// 删除项目下发
export function delIssuedProjects(id) {
  return request({
    url: '/gs/issuedProjects/' + id,
    method: 'delete'
  })
}

// 审核下发项目下发
export function auditIssuedProjects(id) {
  return request({
    url: '/gs/issuedProjects/auditIssuedProjects/' + id,
    method: 'post'
  })
}
